package cn.dnui_zjq823.dnuifood_16110100823.service;

import java.util.List;

import cn.dnui_zjq823.dnuifood_16110100823.bean.CollectionBean;
import cn.dnui_zjq823.dnuifood_16110100823.bean.ResultBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by dell on 2018/11/15.
 */

public interface CollectService {
    @GET("userCollectShop.do")
    Call<ResultBean> userCollectShop(@Query("user_id")int user_id,@Query("shop_id")int shop_id);
    @GET("userCollectFood.do")
    Call<ResultBean> userCollectFood(@Query("user_id")int user_id,@Query("food_id")int food_id);
    @GET("isCollected.do")
    Call<ResultBean> isCollected(@Query("user_id")int user_id,@Query("shop_food_id")int shop_food_id,@Query("flag")int flag);
    @GET("getAllUserCollection.do")
    Call<List<CollectionBean>> getAllUserCollection(@Query("user_id")int user_id,@Query("flag")int flag);
}
